import 'dart:math';
import 'dart:ui';

/// 颜色
Color kColor(r, g, b) => Color.fromRGBO(r, g, b, 1);

Color kColorA(r, g, b, a) => Color.fromRGBO(r, g, b, a);
//主题色
Color kMainColor = const Color(0xff252526);
// 副色
Color kSecondaryColor = const Color(0xFFFFCD00);
//标题颜色
Color kTitleColor = const Color(0xff1B1B1D);
//未选中颜色
Color kInactiveColor = const Color(0xFFA4A5A9);
//控制器背景颜色
Color kPageBackgroundColor = const Color(0xffF1F3F6);
//黑色1
Color kBlack1Color = const Color(0xff252526);

// 黑色000000
Color kBlack00Color = const Color(0xff000000);

// 红色
Color kRedColor = const Color(0xffF94B4B);

// 绿色
Color kGreenColor = const Color(0xff07D66A);

// 橙色
Color kOrangeColor = const Color(0xffFAA33F);

// 黄色
Color kYellowColor = const Color(0xffF9CC17);

// 单绿
Color kLightGreenColor = const Color(0xff19B463);

// 蓝色
Color kBlueColor = const Color(0xff3375FB);

// 蓝色字体
Color kBlueFontColor = const Color(0xff3B87F6);

// 正式文字颜色
Color kTitleColor1 = const Color(0xff828386);

// 解释文字颜色
Color kDescColor = const Color(0xffA0A1A5);

// 占位符颜色
Color kHintColor = const Color(0xffCFD1D7);

// 提示文字颜色
Color kTipColor = const Color(0xffD8DAE0);

// 分割线/边框颜色
Color kDivideBorderColor = const Color(0xffF0F0F4);

// 背景填充色
Color kBgFillColor = const Color(0xffF3F4F6);

// 边框颜色
Color kBorderColor = const Color(0xFFCFD1D7);

// 输入框边框颜色
Color kTextFieldBorderColor = const Color(0xffF0F0F4);

// 单据灰色
Color kReceiptGrayColor = const Color(0xffE8EAEE);

// E3E4E8
Color kE3e4e8Color = const Color(0xffE3E4E8);

//随机颜色
Color kRandomColor = Color.fromRGBO(Random().nextInt(256), Random().nextInt(256), Random().nextInt(256), 1);

/// 字体
const FontWeight kUltralight = FontWeight.w100;
const FontWeight kThin = FontWeight.w200;
const FontWeight kRegular = FontWeight.w400;
const FontWeight kMedium = FontWeight.w500;
const FontWeight kSemibold = FontWeight.w600;
const FontWeight kBold = FontWeight.w700;

const String kPingFangSC = "PingFang SC";
const String kDinAlternate = "DIN Alternate";
